package de.hhkk.util;

import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.custom.TableEditor;

public class TableHelper
{
    private static final String IMG_PATH = "/images/";
    private static final String PDF_PATH = "/pdf/";
    public static final String IMG_ADD = IMG_PATH + "add.png";
    public static final String IMG_ACCEPT = IMG_PATH + "accept.png";
    public static final String IMG_EDIT = IMG_PATH + "edit.png";
    public static final String IMG_DELETE = IMG_PATH + "delete.png";
    public static final String IMG_FIND = IMG_PATH + "find.png";
    public static final String IMG_FOLDER = IMG_PATH + "folder.png";
    public static final String IMG_PAGE_WHITE = IMG_PATH + "page_white.png";
    public static final String IMG_CALCULATE = IMG_PATH + "calculator.png";
    public static final String IMG_INFORMATION = IMG_PATH + "bullet_error.png";
    public static final String PDF_HANDBUCH = PDF_PATH + "Handbuch.pdf";
    public static final String IMG_LOGO_SEGELSCHULE = IMG_PATH + "logo_segelschule.jpg";
    public static final String IMG_BELL_ERROR = IMG_PATH + "bell_error.png";;
    
    public static void deleteTableItem(TableViewer viewer, TableEditor editor, int rowId)
    {
        viewer.getTable().remove(rowId);
//        viewer.refresh();
    }

}
